<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>MainRequest</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
</head>
<body>
<div id="app">
    <button @click="fuzzySearch">fuzzySearch</button>
</div>
<script>
    const send=(req)=>{
        axios({
            method:"post",
            url:"http://localhost:80/main",
            data:req
        }).then(function (resp) {
            console.log(resp.data)
        })
    }
    var vm=new Vue({
        el: '#app',
        methods: {
            //当务之急
            fuzzySearch(){
                let req={
                    type:"req_fuzzySearch",
                    value:{
                        searchString:"",
                        searchType:['tag','info','view'],
                        maxEntry:10,
                    }
                }
                send(req);
                let resp={
                    type:"resp_fuzzySearch",
                    isSuccess:true,
                    value:[{},{},{}]
                }
            }

        }
    })
</script>
</body>
</html>